package com.example.cms.service;

import com.example.cms.entity.Options;
import com.example.cms.entity.Questionnaired;
import com.example.cms.entity.Questionnairefile;
import com.example.cms.pojo.Mesagge;
import com.example.cms.pojo.QueryPage;
import com.example.cms.pojo.QuestionTitleItem;

import java.util.List;

/**
 * @Author Sunbird
 * @Description 调查问卷
 * @Date  2018/12/16
 * @Param
 * @return
 **/

public interface QuestionnairedService {

    public List<Questionnaired> getAllQues();//获得所有问卷

    public List<Questionnaired> findPage(QueryPage queryPage, Mesagge mesagge);//分页查询

    public List<Questionnaired> findeQuestionNaireId(Integer questionNairedId);//根据id查询数据

    Mesagge deletQuestionNaired(Integer questionNairedid);//删除试卷

    Mesagge insertQuestionNaired(Questionnaired questionnaired ,Mesagge mesagge);//新增试卷

    List<Questionnaired> selectQuestionName(String QuestionName);//根据试卷名查询题目

    void insertQuestTitle(Questionnairefile questionnairefile, Mesagge mesagge);//新增题目

    void deletQuestTitle(Integer questionnairedfileId,Mesagge mesagge);//删除题目

    List<Options> optionsByQuestionnaireFileId(Integer QuestionnaireFileId);//根据题目id 查询选项

    void detleOptions(Mesagge mesagge, QuestionTitleItem options);//删除选项

    void  updataOptions(Mesagge mesagge ,QuestionTitleItem options);//修改选项

    void insertOptions(Mesagge mesagge,QuestionTitleItem qptions);//新增选项
}
